package main.controller;

import java.util.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.*;
import org.springframework.http.*;
import org.springframework.data.domain.*;
import org.springframework.web.bind.annotation.*;

import com.justep.cloud.microservice.http.*;
import com.justep.cloud.microservice.*;


import main.service.X5GengxinxyfService;


@RestController
public class GengxinxyfController extends MicroServiceBaseController {
	private static final Logger logger = LoggerFactory.getLogger(GengxinxyfController.class);
	static Map<String, Map<String, Integer>> exceptionStatusMap = new HashMap<String, Map<String, Integer>>();
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("genggaiddzt", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("jujuedffw", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("gengxinspkc", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("dingdandhzxfk", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("qingqiujh", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("gengxinzhycjrltlbdsj", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("dingdanfh", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("gengxinmjxyf", map);
	}		
	@Autowired
	@Qualifier("x5GengxinxyfService")
	private X5GengxinxyfService service;

	//系统生成代码,请不要修改或删除 <actionStart:genggaiddzt>
@RequestMapping(value = "/main/gengxinxyf/genggaiddzt", method = RequestMethod.GET)
	public ResponseEntity<String> genggaiddzt(


@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId,
			@RequestParam(name = "orderID" ) String orderID,
			@RequestParam(name = "state" ) String state
) throws Exception {
		try {
String resp = service.genggaiddzt(sys_XCredentialUserId,orderID,state);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("genggaiddzt");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:genggaiddzt>
	//系统生成代码,请不要修改或删除 <actionStart:jujuedffw>
@RequestMapping(value = "/main/gengxinxyf/jujuedffw", method = RequestMethod.GET)
	public ResponseEntity<String> jujuedffw(


@RequestParam(name = "helperID" ) String helperID,
			@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.jujuedffw(helperID,sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("jujuedffw");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:jujuedffw>
	//系统生成代码,请不要修改或删除 <actionStart:gengxinspkc>
@RequestMapping(value = "/main/gengxinxyf/gengxinspkc", method = RequestMethod.GET)
	public ResponseEntity<String> gengxinspkc(


@RequestParam(name = "spID" ) String spID,
			@RequestParam(name = "num" , defaultValue = "0") Integer num
) throws Exception {
		try {
String resp = service.gengxinspkc(spID,num);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("gengxinspkc");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:gengxinspkc>
	//系统生成代码,请不要修改或删除 <actionStart:dingdandhzxfk>
@RequestMapping(value = "/main/gengxinxyf/dingdandhzxfk", method = RequestMethod.GET)
	public ResponseEntity<String> dingdandhzxfk(


@RequestParam(name = "orderID" ) String orderID,
			@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.dingdandhzxfk(orderID,sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("dingdandhzxfk");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:dingdandhzxfk>
	//系统生成代码,请不要修改或删除 <actionStart:qingqiujh>
@RequestMapping(value = "/main/gengxinxyf/qingqiujh", method = RequestMethod.GET)
	public ResponseEntity<String> qingqiujh(


@RequestParam(name = "helperID" ) String helperID,
			@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.qingqiujh(helperID,sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("qingqiujh");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:qingqiujh>
	//系统生成代码,请不要修改或删除 <actionStart:gengxinzhycjrltlbdsj>
@RequestMapping(value = "/main/gengxinxyf/gengxinzhycjrltlbdsj", method = RequestMethod.PUT)
	public ResponseEntity gengxinzhycjrltlbdsj(


@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
service.gengxinzhycjrltlbdsj(sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity ret = new ResponseEntity(headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("gengxinzhycjrltlbdsj");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:gengxinzhycjrltlbdsj>
	//系统生成代码,请不要修改或删除 <actionStart:dingdanfh>
@RequestMapping(value = "/main/gengxinxyf/dingdanfh", method = RequestMethod.GET)
	public ResponseEntity<String> dingdanfh(


@RequestParam(name = "orderID" ) String orderID,
			@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.dingdanfh(orderID,sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("dingdanfh");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:dingdanfh>
	//系统生成代码,请不要修改或删除 <actionStart:gengxinmjxyf>
@RequestMapping(value = "/main/gengxinxyf/gengxinmjxyf", method = RequestMethod.GET)
	public ResponseEntity<Integer> gengxinmjxyf(


@RequestParam(name = "userID" ) String userID,
			@RequestParam(name = "creditVar" , defaultValue = "10") Integer creditVar
) throws Exception {
		try {
Integer resp = service.gengxinmjxyf(userID,creditVar);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<Integer> ret = new ResponseEntity<Integer>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("gengxinmjxyf");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:gengxinmjxyf>
	@Override
	protected Map<String, Map<String, Integer>> getExceptionStatusMap() {
		return exceptionStatusMap;
	}
}
